export const login = async (credentials) => {
    try {
        const response = await request({
            url: '/auth/login',
            method: 'post',
            data: credentials
        });
        
        if (response.data.token) {
            localStorage.setItem('token', response.data.token);
        }
        return response;
    } catch (error) {
        throw error;
    }
} 